<%@ page contentType="text/html;charset=UTF-8" language="java" trimDirectiveWhitespaces="true" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <title>荩美国际商城</title>
    <link href="/resources/frontcss/321.css" rel="stylesheet">
    <script src="/resources/js/jquery-1.8.1.min.js" type="text/javascript"></script>
</head>
<body>

<div class="contain-all">
     <input type="text" name="account" value="" id="account"/>
    <br>

    <input type="button" value="登录" onclick="login()"/>
</div>

<script>
    function login(){
        $.ajax({
            url:"/wx/login",
            type:"post",
            data:{
                account:$("#account").val()
            },
            success:function(res){
                if(res.success){
                    window.location.href = "/front/productList";
                }else{
                    alert(res.msg);
                }
            },
            error:function(){}
        })
    }

</script>

</body>
</html>